package com.xuecheng.order.agent.sentinel;

import com.xuecheng.api.search.model.dto.CoursePubIndexDTO;
import com.xuecheng.common.domain.code.CommonErrorCode;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.order.agent.SearchApiAgent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p></p>
 *
 * @Description:
 */
@Slf4j
@Component
public class SearchApiAgentFallback implements SearchApiAgent {

    @Override
    public RestResponse<CoursePubIndexDTO> getPubIndexById4s(Long coursePubId) {
        return RestResponse.validfail(CommonErrorCode.E_999984);
    }
}
